package com.jacky.javafx.graph;

import java.util.Comparator;

public class Node implements Comparator<Node> {
    public int node;
    public int cost;

    public Node() {
    }

    public Node(int node, int cost) {
        this.node = node;
        this.cost = cost;
    }

    @Override
    public int compare(Node n1, Node n2) {
        return (n1.cost - n2.cost);
    }
}
